home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / LaserWriter--custom dialogs / ChooserSupport.a next >
Encoding:
Text File  |  1996-03-20  |  1.4 KB  |  55 lines  |  [TEXT/MPS ]

  1. ;  ------------------------------------------------------------------------------
  2. ;
  3. ;    FILENAME
  4. ;        ChooserSupport.a
  5. ;
  6. ;    DESCRIPTION
  7. ;        Contains the code to form the first part of the Chooser 'PACK' for this driver.
  8. ;
  9. ;    COPYRIGHT
  10. ;        Copyright © Apple Computer, Inc. 1992-1994
  11. ;        All rights reserved. 
  12. ;
  13. ;--------------------------------------------------------------------------------
  14.  
  15.     STRING    ASIS
  16.     CASE OBJ
  17.  
  18. kAppleTalkDevice        EQU    $80000000
  19. kIsPAPDevice            EQU $40000000
  20. kIsPostScriptDevice        EQU $20000000
  21. kMultiSelect            EQU    $10000000
  22. kLeftButton                EQU    $08000000
  23. kRightButton            EQU    $04000000
  24. kNoSavedZone            EQU $02000000
  25. kActualZoneNames        EQU    $01000000
  26. kNoIntlChars            EQU    $00800000
  27. kEvenUpName                EQU    $00400000
  28. kLengthOnRename            EQU    $00200000
  29. kUsesOnAndOff            EQU    $00100000
  30. kNoSetSelfSend            EQU    $00080000
  31. kUnused18                EQU    $00040000
  32. kAcceptsInit            EQU    $00020000
  33. kAcceptsNewSel            EQU $00010000
  34. kAcceptsFillList        EQU $00008000
  35. kAcceptsGetSel            EQU    $00004000
  36. kAcceptsSelect            EQU $00002000
  37. kAcceptsDeselect        EQU $00001000
  38. kAcceptsTerminate        EQU    $00000800
  39.  
  40.     IMPORT DEVICE
  41. EntryPoint    PROC EXPORT
  42.         BRA.S    DEVICE                            ; branch to our actual code
  43.         DC.W    $8800                            ; device ID
  44.         DC.L    'PACK'                            ; device Type
  45.         DC.W    $F000                            ; master ID for resources (-4096)
  46.         DC.W    2                                ; version
  47.         DC.L    kLeftButton+kUsesOnAndOff+kAcceptsInit+kAcceptsTerminate    ; flags
  48.         
  49. gJob PROC EXPORT
  50.         DC.L    0                                ; Job global
  51.         
  52. gDriverName    PROC EXPORT
  53.         DS.B    32                                ; driverName
  54.     END
  55.